home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / C⁄C++ OS8 / Gadgets / GadgetsEngine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-06  |  566 b   |  34 lines  |  [TEXT/CWIE]

  1. /* GadgetsEngine.h -- application-specific data management */
  2.  
  3. #pragma once
  4.  
  5. #include "AMEngine.h"
  6.  
  7. class DDocData;
  8.  
  9. //----------
  10. class GadgetsEngine : public AMEngine {
  11. public:
  12.             GadgetsEngine ();
  13.     virtual ~GadgetsEngine ();
  14.  
  15. public:
  16.     virtual void    InitData ();
  17.     virtual void    DisposeData ();
  18.     virtual void    ReadFile ();
  19.     virtual void    WriteFile ();
  20.  
  21.     DDocData*    GetDocData ()
  22.                 {
  23.                     return mDocData;
  24.                 }
  25.  
  26. protected:
  27.     DDocData*        mDocData;
  28. };
  29.  
  30. /* Define the creator type and file type for your application. */
  31.  
  32. #define kSignature        'XXXX'
  33. #define kFileType        'TEXT'
  34.